package com.it.service.impl;

import com.it.mapper.LoginMapper;
import com.it.pojo.Login;
import com.it.service.LoginService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class LoginServiceImpl implements LoginService {
    @Resource
    LoginMapper loginMapper;
    //电话登录
    @Override
    public Login SignLogin(String phone) {
        return loginMapper.SignLogin(phone);
    }
    //邮箱登录
    @Override
    public Login EmailLogin(String email) {
        return loginMapper.EmailLogin(email);
    }
}
